import { useContext } from "react";
import { Context } from "../providers/provider";

export const usePageContext = () => {
  const sysUserContext = useContext(Context);
  return {
    state: sysUserContext[0],
    dispatch: sysUserContext[1]
  };
};
